<%@ page contentType="text/html; charset=UTF-8" language="java"%>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<html:html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
<META http-equiv=Pragma content=no-cache>
<META http-equiv=Cache-Control content=no-cache>
<META http-equiv=Expires content=0>
<link href="../../style/css/style.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="../../style/scripts/util.js"  language="JavaScript"></script>
<script language="javascript1.2">
function operation1(type){
	window.document.forms[0].arrayID.value = "";
	if (type+"" == "addRight") {
		var che = document.frames['Frame1'].document.forms[0].arrayID;
		if(che.length+""=='undefined' && che.checked){
		    window.document.forms[0].arrayID.value += che.value+",";     
		}
		for(i=0;i < che.length;i++) 
		{	
			  if(che[i].checked)
			  {	
				window.document.forms[0].arrayID.value += che[i].value+",";  
			  }
		 }	
		 			
		window.document.forms[0].type.value= "addRight";
	}
	else if (type+"" == "addLeft") {
		var che = document.frames['Frame2'].document.forms[0].arrayID;
		if(che.length+""=='undefined' && che.checked){
		    window.document.forms[0].arrayID.value += che.value+",";     
		}
		for(i=0;i < che.length;i++) 
		{	
			  if(che[i].checked)
			  {	
				window.document.forms[0].arrayID.value += che[i].value+",";  
			  }
		 }	
		 
		window.document.forms[0].type.value= "addLeft";
	}
	//alert(window.document.forms[0].arrayID.value);
	if (window.document.forms[0].arrayID.value == ""){
		alert("请选择记录！");
		return;
	}
	
	window.document.forms[0].operationType.value = "submitAdd";
	window.document.forms[0].submit();
}
</script>
</head>

<body marginheight="0" marginwidth="0" bottommargin="0" topmargin="0" bgcolor="#F3F6FF">
<html:form method="post" action="/pages/F09/F0901RightUser.do" enctype="multipart/form-data">
<html:hidden property="operationType"/>
<html:hidden property="type"/>
<html:hidden property="arrayID"/>
<!--Begin：表单折叠区块1-->
<div id="divDlock_2" class="DivBlock">
<div class="DivHead">
<table width="100%"  border="0" cellpadding="0" cellspacing="0">
	<tr>
	  <td nowrap class="line_wrap" width="37" height="17"><img src="../../style/images/block_unwrap.gif" style="CURSOR: hand;" alt="展开/折叠" onClick="JavaScript:WrapBlock('divDlock_2');"></td>
	  <td nowrap class="line_wrap" width="100%" height="17"><span class="SpanTitle">角色分配</span></td>
	</tr>
</table>
</div>
<!--End：表单折叠区块1-->
<!--Begin：表单按钮及提示区-->
<div class="DivTail" style="text-align:right">
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="left">
    <input type="button" name="Submit1" class="MyButton" value="返回" onClick="javascript:operation('back');">
    </td>
    <td align="right">&nbsp;</td>
  </tr>
</table>
</div>
</div>
<!--End：表单按钮及提示区-->
<!--Begin：表单折叠区块1-->
<div class="DivBlock">
<div class="DivWrap">
<table width="100%"  border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td><table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
			<tr>
				<td width="47%"><iframe name="Frame1" id="Frame1" src="F0901RoleAddLeft.jsp" frameBorder=0 width="100%" style="height:382;overflow:auto;" marginheight="0" marginwidth="0" scrolling="no"></iframe></td>
				<td width="6%"><table width="100%" border="0" align="center" cellpadding="1" cellspacing="1">
					<tr>
						<td align="center" height="30" nowrap><table width="60" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" nowrap="nowrap">&nbsp;&nbsp;&nbsp;<a href="javascript:operation1('addRight');" class="MyButton"><strong>&gt;&gt;</strong></a></td>
							</tr>
						</table></td>
					</tr>
					<tr>
						<td align="center" height="30" nowrap><table width="60" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" nowrap="nowrap">&nbsp;&nbsp;&nbsp;<a href="javascript:operation1('addLeft');" class="MyButton"><strong>&lt;&lt;</strong></a></td>
							</tr>
						</table></td>	
					</tr>
				</table></td>
				<td width="47%"><iframe name="Frame2" id="Frame2" src="F0901RoleAddRight.jsp" frameBorder=0 width="100%" style="height:382;overflow:auto;" marginheight="0" marginwidth="0" scrolling="no"></iframe></td>
			</tr>
		</table></td>
	</tr>
</table>
</div>
</div>
<!--End：表单折叠区块1-->
</html:form>
</body>
</html:html>